From 4a7872b52b299376a0837631beeadff3ddecd143 Mon Sep 17 00:00:00 2001
From: Pinapelz <yukais@pinapelz.com>
Date: Sun, 23 Nov 2025 23:02:26 -0800
Subject: fix: image typing issue in middleware

---
 middleware/src/app/[gameName]/page.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'middleware/src/app/[gameName]/page.tsx')

diff --git a/middleware/src/app/[gameName]/page.tsx b/middleware/src/app/[gameName]/page.tsx
index bce87c8..f87edc1 100644
--- a/middleware/src/app/[gameName]/page.tsx
+++ b/middleware/src/app/[gameName]/page.tsx
@@ -255,7 +255,10 @@ export default async function GamePage({
             is_ai_summary: Boolean(row.is_ai_summary),
             en_headline: row.en_headline as string | null,
             en_content: row.en_content as string | null,
-            images,
+            images: images.map(img => ({
+              image: String(img.image),
+              link: img.link ? String(img.link) : null
+            })),
           };
         }
       }
-- 
cgit v1.2.3

